package com.atguigu.spzx.feign.order;

import com.atguigu.spzx.model.entity.order.OrderInfo;
import com.atguigu.spzx.model.vo.common.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PutMapping;

/**
 * @author LT
 * @create 2024-04-01-19:04
 */
@FeignClient(value = "service-order")
public interface OrderFeignClient {

    @GetMapping("/api/order/orderInfo/auth/getByOrderInfoOrderNo/{orderNo}")
    public Result<OrderInfo> getByOrderInfoOrderNo(@PathVariable("orderNo")Long orderNo);

    @PutMapping("/api/order/orderInfo/auth/updateStockAndSale/{orderNo}")
    public Result updateStockAndSale(@PathVariable("orderNo") String orderNo);
    @PutMapping("/api/order/orderInfo/auth/updatePayTypeAndOrderStatus/{payType}/{paymentStatus}/{orderNo}")
    public Result updatePayTypeAndOrderStatus(@PathVariable("payType")Integer payType,@PathVariable("paymentStatus") String paymentStatus,@PathVariable("orderNo") String orderNo);

}
